-- GENERATED SPELL FOR [Sarinei Whitestar] --


function spell0_21172(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21172', 640, 1)
end

function Sorts_21172(pUnit, Event)
local choix_sorts_21172 = math.random(0, 0)
if choix_sorts_21172 == 0 then
pUnit:RegisterEvent('spell0_21172', 1, 1)
end
end

function mob21172_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21172', math.random(1500, 3000), 1)
end

function mob21172_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21172_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21172_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21172, 1, 'mob21172_Action')
RegisterUnitEvent(21172, 2, 'mob21172_Leave')
RegisterUnitEvent(21172, 3, 'mob21172_Kill')
RegisterUnitEvent(21172, 4, 'mob21172_Die')
